package com.zzq.common.core.constant;

/**
 * 通用常量信息
 */
public class Constants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * www主域
     */
    public static final String WWW = "www.";

    /**
     * RMI 远程方法调用
     */
    public static final String LOOKUP_RMI = "rmi:";

    /**
     * LDAP 远程方法调用
     */
    public static final String LOOKUP_LDAP = "ldap:";

    /**
     * LDAPS 远程方法调用
     */
    public static final String LOOKUP_LDAPS = "ldaps:";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;

    /**
     * 登录成功状态
     */
    public static final String LOGIN_SUCCESS_STATUS = "0";

    /**
     * 登录失败状态
     */
    public static final String LOGIN_FAIL_STATUS = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";

    /**
     * 验证码有效期（分钟）
     */
    public static final long CAPTCHA_EXPIRATION = 5;

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 自动识别json对象白名单配置（仅允许解析的包名，范围越小越安全）
     */
    public static final String[] JSON_WHITELIST_STR = {"org.springframework", "com.sxjh"};

    /**
     * 定时任务白名单配置（仅允许访问的包名，如其他需要可以自行添加）
     */
    public static final String[] JOB_WHITELIST_STR = {"com.sxjh"};

    /**
     * 定时任务违规的字符
     */
    public static final String[] JOB_ERROR_STR = {"java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
            "org.springframework", "org.apache", "com.sxjh.common.core.utils.file"};

    public static final String SMS_REDIS_KEY = "ht_sms_";
    /**
     * 二维码轮训key
     */
    public static final String QR_LOGIN_KEY = "qr_login_";
    /**
     * 二维码已扫描待确认key
     */
    public static final String QR_SCAN_KEY = "qr_scan_";

    /**
     * 二维码已确认key
     */
    public static final String QR_CONFIRM_KEY = "qr_confirm_";

    /**
     * 小程序登录 redis key
     */
    public static final String MINI_LOGIN_TOKEN_KEY = "mini_login_tokens:";

    public static final String USER_KEY = "gov-api-userId";

    public static final String APP_USER_KEY = "gov-app-userId";

    /**
     * 大屏任务指挥调度 按月统计投诉 redis key
     */
    public static final String BIG_SCREEN_MONTH_COUNT = "big_screen_month_count:";
    /**
     * 大屏任务指挥调度 按月统计时间 redis key
     */
    public static final String BIG_SCREEN_MONTH_TIME = "big_screen_month_time:";
    /**
     * 大屏任务指挥调度 按周统计投诉 redis key
     */
    public static final String BIG_SCREEN_WEEK = "big_screen_week:";
    /**
     * 大屏任务指挥调度 按部门统计投诉 redis key
     */
    public static final String BIG_SCREEN_DEPT = "big_screen_dept:";

    public static final String UNION_TOKEN_KEY = "union_token_key:";
}
